import request from "@/utils/http"
import type { Promotion } from "@/types/Promotion"
import type { RegularSeckill } from "@/types/RegularSeckill"

// 获取会员所有地址
export const getSeckillPromotionApi = () => {
  return request<Promotion[]>({
    url:'sms/front/sPromotion/list',
    method:'GET',
  })
}


// 获取秒杀
export const getSeckillGoodsApi = (promotionId: number) => {
  return request<RegularSeckill[]>({
    url:`seckill/front/goods/${promotionId}`,
    method:'GET',
  })
}